#include "VServer.h"

VServer::VServer()
{
    this->setFixedSize(600, 600);

    this->central_widget = new QMdiArea;

    this->sub_server = new QMdiSubWindow;
    this->sub_server = this->central_widget->addSubWindow(VAuthentication::get_instance());
    this->sub_server->setWindowFlags(Qt::FramelessWindowHint);

    this->setCentralWidget(this->central_widget);

    c_server = new CServer;
    c_server->start();
}

VServer::~VServer()
{
    delete c_server;
    delete sub_server;
    delete central_widget;
}
